
// 初始化数据，修改数据
const initstate = {
    count: 0,
    msg: 'hello',
    info:'xixixi'
}
// 2.
export default function (state = initstate, action) {

    switch (action.type) {
        case 'ADD':
            return {
                ...state,count:state.count+action.num
            }
        default:
            return state;
}

}